module.exports = {
    configureWebpack: {
        resolve: {
            alias: {
                // 映射文件路径
                assets: "@/assets",
                common: "@/common",
                components: "@/components",
                network: "@/network",
                views: "@/views",
            },
        },
    },
    // 打包输出路径
    outputDir: "dist",

    // 开发服务器配置
    devServer: {
        host: "localhost",
        port: 8080,
        // npm run serve自动打开
        open: true,
        // 热更新
        hotOnly: true,
    },
};